const mongoose = require("./baseDB/index");
const ShoesSchema = new mongoose.Schema({
    url:String,
    img:String,
    title:String,
    detailTitle:String,
    price:String,
    detailMsg:Array,
    sold:Number
},{
    versionKey: false
})
// 3.创建数据模型，操作数据库
// table传入的是鞋子品牌的数据库的表名
function ShoesModel(table){
    return mongoose.model(table,ShoesSchema,table); 
}
module.exports = ShoesModel;